package com.rongc.client.freight.business.supply.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;

import org.json.JSONObject;


/*
*  查询货主是否存在发布中的货源
* */

public class SupplyHasList2MatchApi extends AbsRequest<SupplyHasList2MatchApi.SupplyHasList2MatchParams, JSONObject> {

    public SupplyHasList2MatchApi(SupplyHasList2MatchParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getHasList2MatchUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class SupplyHasList2MatchParams extends BaseParams {

        public SupplyHasList2MatchParams() {
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }


}
